<template>
  <div class="home">
    <el-card class="welcome-card">
      <template #header>
        <div class="card-header">
          <span>欢迎使用餐饮点菜管理系统</span>
        </div>
      </template>
      <div class="content">
        <p>这是一个基于Vue3 + Element Plus + Vite构建的现代化后台管理系统。</p>
        <p>系统提供了完整的RBAC权限控制，支持用户、角色、权限管理。</p>
        <el-row :gutter="20" class="stats">
          <el-col :span="8">
            <el-card class="stat-card">
              <div class="stat-item">
                <div class="stat-value">128</div>
                <div class="stat-label">菜品总数</div>
              </div>
            </el-card>
          </el-col>
          <el-col :span="8">
            <el-card class="stat-card">
              <div class="stat-item">
                <div class="stat-value">24</div>
                <div class="stat-label">今日订单</div>
              </div>
            </el-card>
          </el-col>
          <el-col :span="8">
            <el-card class="stat-card">
              <div class="stat-item">
                <div class="stat-value">8</div>
                <div class="stat-label">用户数量</div>
              </div>
            </el-card>
          </el-col>
        </el-row>
      </div>
    </el-card>
  </div>
</template>

<script setup>
import { ElCard, ElRow, ElCol } from 'element-plus'
</script>

<style scoped>
.welcome-card {
  max-width: 800px;
  margin: 0 auto;
}

.card-header {
  font-size: 18px;
  font-weight: bold;
}

.content p {
  font-size: 16px;
  line-height: 1.6;
  margin: 15px 0;
}

.stats {
  margin-top: 30px;
}

.stat-card {
  text-align: center;
}

.stat-item {
  padding: 20px 0;
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #409eff;
}

.stat-label {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}
</style>